package com.atguigu.demo;

import com.alibaba.excel.EasyExcel;

import java.io.Writer;
import java.util.ArrayList;

public class WriterExcel {
    public static void main(String[] args) {
        String filePath = "D:\\testdasda.xlsx";
//        ArrayList<PersonEx> objects = new ArrayList<>();
//        objects.add(new PersonEx(1,"周杰论"));
//        objects.add(new PersonEx(2,"李浩龙"));
//        EasyExcel.write(filePath,PersonEx.class).sheet("写入方法").doWrite(objects);
        EasyExcel.read(filePath,PersonEx.class,new ExcelListener()).sheet().doRead();
    }
}
